﻿using UnityEngine;
using System.Collections;

public class Text3 : MonoBehaviour 
{

    string jogOlimp = "";

    void Start()
    {
        jogOlimp = PlayerPrefs.GetString(this.gameObject.name);
    }
    void Update()
    {
       
    }
    void OnGUI()
    {
        jogOlimp = GUI.TextArea(new Rect(492, 75, Screen.width / 3, Screen.height / 2), jogOlimp, 200);
        PlayerPrefs.SetString(this.gameObject.name, jogOlimp);
        PlayerPrefs.Save();
        GUI.skin.textArea.normal.background = null;
        GUI.skin.textArea.active.background = null;
        GUI.skin.textArea.onHover.background = null;
        GUI.skin.textArea.hover.background = null;
        GUI.skin.textArea.onFocused.background = null;
        GUI.skin.textArea.focused.background = null;
        GUI.skin.textArea.normal.textColor = Color.black;
    }
}
